import axiosInstance from "../axiosInstance";

const addressInfo = {
    findByUid() {
        return axiosInstance.get("/address/findByUid")
    },
    findByDefault() {
        return axiosInstance.get("/address/findByDefault")
    },
    setDefault(id) {
        return axiosInstance.get("/address/setDefault/" + id)
    },
    add(data) {
        return axiosInstance.post("/address/add", data)
    },
    edit(id, data) {
        return axiosInstance.post("/address/edit/" + id, data)
    },
    findById(id) {
        return axiosInstance.get("/address/findById/" + id)
    },
    delete(id) {
        return axiosInstance.get("/address/delete/" + id)
    }
}

export default addressInfo;